package com.blog.blogservice.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 角色权限关联表 (RolePermission)实体类
 *
 * @author guanglin.ma
 * @since 2024-03-10 22:58:07
 */
@TableName("role_permission")
public class RolePermission {
    private static final long serialVersionUID = 398718207644806596L;

    public static final String FIELD_ROLE_PERMISSION_ID = "rolePermissionId";
    public static final String FIELD_ROLE_ID = "roleId";
    public static final String FIELD_PERMISSION_ID = "permissionId";

    @TableId(type = IdType.AUTO)
    private Integer rolePermissionId;

    private Integer roleId;

    private Integer permissionId;


    public Integer getRolePermissionId() {
        return rolePermissionId;
    }

    public void setRolePermissionId(Integer rolePermissionId) {
        this.rolePermissionId = rolePermissionId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
    }

}

